import Card from "./Card";
import "./CardList.css";
const CardList = ({ cards = [], onPointChange = () => {} }) => {
  return (
    <div className="card-list">
      {cards.map((card) => (
        <Card key={card.id} item={card} onPointChange={onPointChange} />
      ))}
    </div>
  );
};
export default CardList;
